package com.vframework.cms.document.mapper;

import java.util.List;
import java.util.Map;

import com.vframework.base.mapper.BaseMapper;
import com.vframework.cms.document.model.DocumentBean;

public interface DocumentMapper extends BaseMapper {
    public int getCount(Map<String, Object> paramMap);
    
    public List<DocumentBean> getList(Map<String, Object> paramMap);
    
    public DocumentBean getParentByPath(String path);
    
    public DocumentBean getById(String fileId);
    
    public DocumentBean getByUId(String uid);
    
    public List<DocumentBean> getParents(String parentId);
    
    public int insertDocument(DocumentBean documentBean);
    
    public int updateDocument(DocumentBean documentBean);
    
    public int updateRootPath(String fileId);
    
    public int deleteDocument(String... ids);
}
